package com.augurit.wf.common.dao;

import org.springframework.stereotype.Repository;

import com.augurit.common.base.dao.BaseDao;
import com.augurit.wf.common.entity.Jbpm4HistProcinst;

@Repository
public class Jbpm4HistProcinstDao extends BaseDao<Jbpm4HistProcinst, Long> {
	
	//根据procInstId获取流程实例对象
	public Jbpm4HistProcinst getByProcinstId(String procInstId){
		Jbpm4HistProcinst entity = null;
		if(procInstId != null && procInstId.trim().length()>0){
			String hql ="from Jbpm4HistProcinst ps where ps.procInstId='" + procInstId +"'";
			entity = this.findUnique(hql);
		}
		return entity;
	}
}